using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

public class SendMsg : MonoBehaviour
{


    public Button sendBtn;
    public TMP_InputField inputField;

    void Start()
    {
        sendBtn.onClick.AddListener(() =>
        {
            if (inputField.text != "")
            {
                NetManager.instance.Send(inputField.text);
                inputField.text = "";
            }
        });
    }

    void Update()
    {
        
    }
}
